<link rel="stylesheet" href="../component/bootstrap/css/bootstrap-tagsinput.css">

<div class="app-address-content">

    <div class="app-address-table"></div>

    <script type="text/html" id="appAddressForm">
        <form class="layui-form padding-5 layui-dialog appAddressForm">
            <div class="layui-form-item ">
                <label class="layui-form-label required">平台类型：</label>
                <div class="layui-input-block">
                    <select name="keyNo" class="layui-input" disabled>
                        {{# layui.each(d.platformTypes, function(index, item){ }}
                        <option value="{{item.code}}" {{# if(item.code== d.data.keyNo){}}selected{{#}}}>
                            {{item.description}}
                        </option>
                        {{# }); }}
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">APP地址：</label>
                <div class="layui-input-block">
                    <input type="text" name="keyValue" required lay-verify="required"
                           autocomplete="off" value="{{d.data.keyValue||''}}"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label required">说明信息：</label>
                <div class="layui-input-block">
                    <input type="text" name="caption" required lay-verify="required"
                           autocomplete="off" value="{{d.data.caption||''}}"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn save" lay-submit lay-filter="{{d.model}}">保存</button>
                    <button type="reset" class="layui-btn">重置</button>
                </div>
            </div>
            <input type="hidden" name="id" value="{{d.data.id||''}}"/>
            <input type="hidden" name="channelId" value="3"/>
        </form>
    </script>
</div>

<script src="../component/bootstrap/js/bootstrap-tagsinput.min.js"></script>
<script type="text/javascript" src="../js/app-address.js"></script>